target("procstat_skel")
	add_rules("platform.linux.bpf")
	set_kind("object")
	-- set_toolchains("@gcc")
	add_packages("bpftool")
	set_toolchains("@llvm")
	add_files("*.bpf.c")
	set_symbols("debug")
	add_includedirs("../")
	add_packages("libbpf", "vmlinux-header")
	on_load(function(target)
		local headerdir = path.join(target:autogendir(), "rules", "bpf")
		target:add("includedirs", headerdir, {public = true})
	end)

-- package("skel_header")
-- 	add_deps("bpf_skel")
-- package_end()



